package com.jiangnan.warehouse_management.dto.request;

import jakarta.validation.constraints.Min;
import lombok.Data;


@Data
public class WarehouseQueryRequest {
    /**
     * 页码，默认值为1
     */
    @Min(value = 1, message = "页码不能小于1")
    private Integer page = 1;

    /**
     * 每页数量，默认值为10
     */
    @Min(value = 1, message = "每页数量不能小于1")
    private Integer pageSize = 10;

    /**
     * 用户名，用于模糊查询
     */
    private String warehouseName;

    /**
     * 角色，用于筛选
     */
    private Boolean status;
}
